#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
    string bignum1,bignum2;
    int len1,len2;
    cin>>bignum1>>bignum2;  
    len1=bignum1.length();
    len2=bignum2.length();
    vector<int> v1,v2;
    for(char c:bignum1){
        v1.push_back(c-'0');
    }
    for(char c:bignum2){
        v2.push_back(c-'0');
    }
    reverse(v1.begin(), v1.end());
    reverse(v2.begin(), v2.end());
    vector<int> output(len1+len2,0);
    for(int i=0;i<len1;i++){
        for(int j=0;j<len2;j++){
            output[i+j]+=v1[i]*v2[j];
    }
}
    for(int i=0;i<len1+len2;i++){
        if(output[i]>9){
            output[i+1]+=output[i]/10;
            output[i]%=10;
        }else{
continue;
        }
    }
    reverse(output.begin(), output.end());
    int start=0;
    while(start<output.size()&&output[start]==0){
        start++;        }
        string result;
    for(int i=start;i<output.size();i++){
        result+=to_string(output[i]);
    }
    cout<<result<<endl;
    return 0;
}


